<?php 
defined('RUN_KATANA') or die('Restricted access');
if(count($sitemap->getArticles()) > 0)
{
	foreach($sitemap->getArticles() as $page)
	{
		if(is_file($sitemap->getViewPath().get_class($page).'Item.php'))
		{ require($sitemap->getViewPath().get_class($page).'Item.php'); }
		else
		{
			if(is_file($sitemap->getViewPath().'ArticleItem.php'))
			{ require($sitemap->getViewPath().'ArticleItem.php'); }
		} 
		echo '<div class="clear"></div>';
		
		$katana->TrackViews['sitemap_pages'][$page->getId()]['table'] = 'sitemap_pages';
		$katana->TrackViews['sitemap_pages'][$page->getId()]['where'] = 'id='.$page->getId();
		$katana->TrackViews['sitemap_pages'][$page->getId()]['set'] = 'ViewsList=ViewsList+1';
	}
}
?>